package com.example.fengyungo.service.impl;

import com.example.fengyungo.dao.OrderResultDao;
import com.example.fengyungo.domain.pojo.OrderResult;
import com.example.fengyungo.service.OrderResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderResultServiceImpl implements OrderResultService {

    @Autowired
    private OrderResultDao orderResultDao;

    /**
     * 添加订单结果
     *
     * @param orderResult OrderResult
     * @return Integer
     */
    @Override
    public Integer addOrderResult(OrderResult orderResult) {
        return orderResultDao.addOrderResult(orderResult);
    }

    /**
     * 根据订单号查询订单结果
     *
     * @param number String
     * @return OrderResult
     */
    @Override
    public OrderResult getOrderResultByOutTradeNo(String number) {
        return orderResultDao.getOrderResultByOutTradeNo(number);
    }
}
